package com.shop.feign;

import com.shop.feign.impl.ProductFeignImpl;
import com.shop.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//调用商品系统
@Component
@FeignClient(value = "website-product-1001",fallback = ProductFeignImpl.class)
public interface ProductFeign {

    @GetMapping("/product/findSkuInfoBySkuId/{skuId}")
    public R findSkuInfoBySkuId(@PathVariable("skuId") Long skuId);

}
